<include file="public@header"/>
<style>
    .page-body {
        margin: 20px;
    }
    .article-box {

    }
    .article-title {
        font-weight: bold;
        font-size: 20px;
        text-align: center;
    }
    .article-info {
        display: flex;
        justify-content: space-around;
        padding: 0 30%;
        margin-top: 20px;
    }
    .article-content {
        padding: 20px;
    }
</style>
</head>
<body>
    <div class="page-body">
        <div class="article-box">
            <div class="article-title">{$data.title}</div>
            <div class="article-info">
                <div>分类：{$data.category.category_name}</div>
                <div>作者：{$data.author}</div>
                <div>{$data.read_num}次阅读</div>
            </div>
            <div class="article-content">
                <script type="text/plain" id="content">{$data.content |html_entity_decode=###}</script>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        //编辑器路径定义
        var editorURL = GV.WEB_ROOT;
    </script>
    <script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
    <script type="text/javascript">
        $(function () {
            var ue = UE.getEditor('content', {
                toolbars: false,
                wordCount:false
            });
            // 对编辑器的操作最好在编辑器ready之后再做
            ue.ready(function() {
                // 设置编辑器禁用
                ue.setDisabled();
            });
        });

    </script>
</body>

</html>